import chalk from 'chalk';
import fs from 'fs';
import path from 'path';
import XLSX from 'xlsx';

console.log(chalk.blue('Hello world!'));

console.log(path.parse("d:\\test\\a.docx"));

var wb = XLSX.readFile("D:\\code\\DocxDemo\\test\\data.xlsx");
var cfg = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]])
console.log(cfg);